# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-album
pkgver=6.0.4
pkgrel=2
pkgdesc='A fashion photo manager for viewing and organizing pictures'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/deepin-album"
license=('GPL3')
depends=('deepin-qt5integration' 'dtkdeclarative' 'dtkcore' 'dtkgui' 'dtkwidget' 'qt5-base'
         'qt5-svg' 'qt5-declarative' 'ffmpeg' 'ffmpegthumbnailer' 'freeimage' 'gio-qt'
         'udisks2-qt5' 'gcc-libs')
makedepends=('cmake' 'ninja' 'qt5-tools')
groups=('deepin-extra')
source=("https://github.com/linuxdeepin/deepin-album/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('2da352cf860ef33b9982d4aae2f7ccbbea41269b12360545828d04211d112ace16bf5908ac8f9cb34f3c6311c0a27fd6a9c958709cfcb84d9afb60eb82b11fa0')
options=(!lto)

build() {
  cd deepin-album-$pkgver
  cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DVERSION=$pkgver
  ninja
}

package() {
  cd deepin-album-$pkgver
  DESTDIR="$pkgdir" ninja install
}
